home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / HyperCuber 2.0 Source / CPrimitive.cp < prev    next >
Encoding:
Text File  |  1994-04-27  |  1.8 KB  |  67 lines  |  [TEXT/KAHL]

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| This file contains the implementation of the CPrimitive class.  A CPrimitive
  3. //| is a graphics primitive (like a line, a point, or a polygon).
  4. //|________________________________________________________________________________
  5.  
  6.  
  7. #include "CPrimitive.h"
  8.  
  9.  
  10. //============================ Prototypes ============================\\
  11.  
  12.  
  13.  
  14. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. //| CPrimitive::IPrimitive
  16. //|
  17. //| Purpose: Initialize a CPrimitive.
  18. //|
  19. //| Parameters: vertices: the 2D vertex list
  20. //|             colors:   the color list
  21. //|_________________________________________________________
  22.  
  23. void CPrimitive::IPrimitive(CList *colors)
  24. {
  25.  
  26.     this->colors = colors;                    //  Save the color list
  27.  
  28. }    //==== CPrimitive::IPrimitive() ====\\
  29.  
  30.  
  31.  
  32. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. //| CPrimitive::Dispose
  34. //|
  35. //| Purpose: Dispose of the primitive.
  36. //|
  37. //| Parameters: none
  38. //|_________________________________________________________
  39.  
  40. void CPrimitive::Dispose(void)
  41. {
  42.  
  43.  
  44. }    //==== CPrimitive::Dispose() ====\\
  45.  
  46.  
  47.  
  48. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. //| CPrimitive::Draw
  50. //|
  51. //| Purpose: Draw this primitive.
  52. //|
  53. //| Parameters: override_color: the color to use to draw the primitive
  54. //|                             If this is NULL, use the primitive's default
  55. //|             screen_vertices: the screen coordinates of the vertices
  56. //|             clip_rect:       the clipping rectangle
  57. //|             fAntialias:      TRUE if we should antialias
  58. //|__________________________________________________________________________
  59.  
  60. void CPrimitive::Draw(RGBColor *override_color, Point **screen_vertices,
  61.                         Rect *clip_rect, Boolean fAntialias)
  62. {
  63.  
  64.  
  65. }    //==== CPrimitive::Draw() ====\\
  66.  
  67.